package com.bonc.rms.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bonc.rms.dao.OrderDao;
import com.bonc.rms.service.OrderService;

@Service(value = "orderServiceImpl")
public class OrderServiceImpl implements OrderService{

	@Autowired
	OrderDao orderDao;
	
	@Override
	public List<Map<String, Object>> getOrderInfo() {
		return orderDao.getOrderInfo();
	}

	@Override
	public List<Map<String, Object>> getSingleOrderInfo(Integer orderId) {
		return orderDao.getSingleOrderInfo(orderId);
	}

	@Override
	public List<Map<String, Object>> updateOrderInfo(Integer orderId, Integer userId, String petName, String orderCode,
			String itemName, String quantity, String itemPricing, String address) {
		return orderDao.updateOrderInfo(orderId, userId, petName, orderCode,
				itemName, quantity, itemPricing, address);
	}

	@Override
	public Object deleteOrderInfo(Integer orderId) {
		return orderDao.deleteOrderInfo(orderId);
	}


}
